<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewTripsTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewTripsLabel_routeId}"/>
                    <h:outputText value="#{tripsController.selected.routeId}" title="#{bundle.ViewTripsTitle_routeId}"/>
                    <h:outputText value="#{bundle.ViewTripsLabel_serviceId}"/>
                    <h:outputText value="#{tripsController.selected.serviceId}" title="#{bundle.ViewTripsTitle_serviceId}"/>
                    <h:outputText value="#{bundle.ViewTripsLabel_tripId}"/>
                    <h:outputText value="#{tripsController.selected.tripId}" title="#{bundle.ViewTripsTitle_tripId}"/>
                    <h:outputText value="#{bundle.ViewTripsLabel_tripHeadsign}"/>
                    <h:outputText value="#{tripsController.selected.tripHeadsign}" title="#{bundle.ViewTripsTitle_tripHeadsign}"/>
                    <h:outputText value="#{bundle.ViewTripsLabel_tripShortName}"/>
                    <h:outputText value="#{tripsController.selected.tripShortName}" title="#{bundle.ViewTripsTitle_tripShortName}"/>
                    <h:outputText value="#{bundle.ViewTripsLabel_directionId}"/>
                    <h:outputText value="#{tripsController.selected.directionId}" title="#{bundle.ViewTripsTitle_directionId}"/>
                    <h:outputText value="#{bundle.ViewTripsLabel_blockId}"/>
                    <h:outputText value="#{tripsController.selected.blockId}" title="#{bundle.ViewTripsTitle_blockId}"/>
                    <h:outputText value="#{bundle.ViewTripsLabel_shapeId}"/>
                    <h:outputText value="#{tripsController.selected.shapeId}" title="#{bundle.ViewTripsTitle_shapeId}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{tripsController.destroyAndView}" value="#{bundle.ViewTripsDestroyLink}"/>
                <br />
                <br />
                <h:commandLink action="Edit" value="#{bundle.ViewTripsEditLink}"/>
                <br />
                <h:commandLink action="#{tripsController.prepareCreate}" value="#{bundle.ViewTripsCreateLink}" />
                <br />
                <h:commandLink action="#{tripsController.prepareList}" value="#{bundle.ViewTripsShowAllLink}"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.ViewTripsIndexLink}" action="/index" immediate="true" />

            </h:form>
        </ui:define>
    </ui:composition>

</html>
